#pragma once

#include "OnDemandServerMediaSubsession.hh"

class IPCameraJPEGServerMediaSubsession : public OnDemandServerMediaSubsession
{
public:
	IPCameraJPEGServerMediaSubsession(UsageEnvironment& env, Boolean reuseFirstSource);
public:
	~IPCameraJPEGServerMediaSubsession(void);

	//static CameraJPEGServerMediaSubsession* createNew(UsageEnvironment& env, Boolean reuseFirstSource);
	FramedSource* createNewStreamSource(unsigned /*clientSessionId*/, unsigned& estBitrate);
	RTPSink* createNewRTPSink(Groupsock* rtpGroupsock,
		unsigned char rtpPayloadTypeIfDynamic,
		FramedSource* /*inputSource*/);

	int		int_stream_id;
	void*	ptr_frame_buffer;
};
